<!--
	PetClinic :: a Spring Framework demonstration
-->

<!-- Chuck -->

<% 
if(! "XMLHttpRequest".equals(request.getHeader("X-Requested-With"))){
%>
<!-- Chuck html tag was previously missing, as was doctype -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd"> 
<html>


<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <link rel="stylesheet" href="<c:url value="/styles/petclinic.css"/>" type="text/css"/>
   <style type="text/css">
        @import "http://o.aolcdn.com/dojo/1.1/dijit/themes/tundra/tundra.css";
        @import "http://o.aolcdn.com/dojo/1.1/dojo/resources/dojo.css"
    </style>

  <title>PetClinic :: a Spring Framework demonstration</title> 

  <!-- Chuck -->
  <script type="text/javascript" src="http://o.aolcdn.com/dojo/1.1/dojo/dojo.xd.js" 
        djConfig="parseOnLoad: true"></script>

   <script type="text/javascript">
       //Chuck Why can't I put this only in pages where I need it??
       dojo.require("dijit.Dialog");
     </script>


 <!--  TODO Remove dojo from js directory! <script type="text/javascript" src="<c:url value="/js/dojo.js" />"></script> -->
  <script type="text/javascript" src="<c:url value="/js/Spring.js.uncompressed.js" />"></script>
  <script type="text/javascript" src="<c:url value="/js/Spring.js.uncompressed.js" />"></script>
  <script type="text/javascript" src="<c:url value="/js/Spring-Dojo.js.uncompressed.js" />"></script>
  <script type="text/javascript" src="<c:url value="/js/jquery-1.2.1.js" />"></script>
  <script type="text/javascript" src="<c:url value="/js/jsonHelp.jquery.js" />"></script>


 
</head>

<body  class="tundra">
  <!-- Chuck  class='replaceMe' allows div contents to be replaced by our json javascript. --> 
  <div id="main" class='replaceMe'>

<% }
%>